﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace floc
{
    class Compiler
    {
        public string IL = "";

        private string[] code;

        public bool Error = false;

        public void AddIL(string code)
        {
            IL += code;
            IL += '\n';
        }

        public Compiler(string[] code)
        {
            this.code = code;
        }

        public void Compile()
        {
            AddIL("externdll 'vcorlib.vcl'");
            foreach (string s in code)
            {
                if (s.StartsWith("class->"))
                {
                    Class c;
                    string n = s.Replace(s.Substring(7), "");
                    
                }
            }
        }
    }
}
